package com.yonyou.iuap.ipaas.connector.sdwcoatencent.api.model.core.response;

import lombok.Data;

import java.io.Serializable;

@Data
public class Response implements Serializable {
    private static final long serialVersionUID = 1L;

    private String code;

    private String message;

    private Object data;



    public String toString() {
        return "Response(code=" + getCode() + ", message=" + getMessage() + ", data=" + getData() + ")";
    }

    public Response() {
    }


    public Response(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public Response(String code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
